package com.zrj.marking.controller;

import com.zrj.marking.entity.Marking;
import com.zrj.marking.entity.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

/**
 * 营销控制器
 *
 * @author zrj
 * @since 2022/10/6
 **/
@Slf4j
@RestController
@RequestMapping("/marking")
public class MarkingController {

    @GetMapping("/get")
    public Result<String> get() {
        log.info( "【营销服务】获取成功." );
        return Result.success( "查询成功", "get marking success..." );
    }

    @PostMapping("/create")
    public Result<Marking> create(@RequestBody Marking marking) {
        log.info( "【营销服务】新增成功：{}.", marking );
        return Result.success( "新增成功", marking );
    }

}
